<h1>Editing card</h1>

<%= error_messages_for :card %>

<% form_for(:card, :url => card_path(@card), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', card_path(@card) %> |
<%= link_to 'Back', cards_path %>